| Class | AI::CSP::Variable |
| In: |
ai/csp/variable.rb
|
| Parent: | Object |
A variable and its domain. Also supports instantiating the variable and pruning values when propagating constraints.
See AI::CSP for an overview and examples.
| MAXINT | = | 2**16 | Just needs to be larger than the number of variables in problem |
| domain | [R] | |
| name | [R] | |
| value | [RW] |
Returns true if the value at value_index has been pruned at this level (or at any previous levels). If no value_index is specified, returns true if any values have been pruned at the specified level.